import request from '@/utils/request'

// 查询首页菜单/一级分类列表
export function pageRetirementMenu(query) {
  return request({
    url: '/retirement/retirementMenu/page',
    method: 'get',
    params: query
  })
}

// 查询首页菜单/一级分类列表
export function listRetirementMenu(query) {
  return request({
    url: '/retirement/retirementMenu/list',
    method: 'get',
    params: query
  })
}


// 查询首页菜单/一级分类详细
export function getRetirementMenu(id) {
  return request({
    url: '/retirement/retirementMenu/' + id,
    method: 'get'
  })
}

// 新增首页菜单/一级分类
export function addRetirementMenu(data) {
  return request({
    url: '/retirement/retirementMenu',
    method: 'post',
    data: data
  })
}

// 修改首页菜单/一级分类
export function updateRetirementMenu(data) {
  return request({
    url: '/retirement/retirementMenu',
    method: 'put',
    data: data
  })
}

// 删除首页菜单/一级分类
export function delRetirementMenu(id) {
  return request({
    url: '/retirement/retirementMenu/' + id,
    method: 'delete'
  })
}
